#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

void* my_memcpy(void* dest, const void* src, size_t num)
{
	while (num--)
	{
		*((char*)dest)++ = *((char*)src)++;
	}
}

int main()
{
	int arr[10] = { 0 };
	int arr1[] = { 1,2,3,4,5 };
	my_memcpy(arr, arr1, 20);

	for (int i = 0; i < 10; i++)
	{
		printf("%d ", arr[i]);
	}

	return 0;
}
